// 定义和医院设置相关的函数
import { request } from '@utils/http'
// 引入
import { IhospitalSetRes } from '@api/hospital/hospitalSet/model/hospitalSetTypes'
export function reqGetHospitalSets(
  page: number,
  limit: number,
  hosname?: string,
  hoscode?: string
) {
  // 写泛型,是明确这次请求响应的数据类型
  return request.get<any, IhospitalSetRes>(
    `/admin/hosp/hospitalSet/${page}/${limit}`,
    {
      //get请求上传参数,在配置对象中写params.最终还是会拼接成查询字符串
      params: {
        hosname,
        hoscode,
      },
    }
  )
}
